

#include "system_list.h"

#include "xapp_auto_k.h"
#include "xapp_system.h"
#include "data_uart_test.h"

static void init(void)
{
    uart_test_init();
    xapp_system_timer_start_single_shot( 1000 );
}

static void destroy(void)
{
    xapp_system_timer_stop();
}

static void task_loop(uint8_t flag)
{
    xapp_auto_k_task_loop();
    xapp_system_timer_start_single_shot( 1000 );
}

const user_system_desc_t gsSYSTEM_AUTO_K = 
{
    .mode = SYSTEM_MODE_AUTO_K,
    .function = 
    {
        .init = init,
        .destroy = destroy,
        .task_loop = task_loop,
    }
};

